using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor.SceneManagement;
using UnityEngine.SceneManagement;

public class UiManeager : MonoBehaviour
{
    // Start is called before the first frame update

    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    public void Leveldiliver(int level)
    {
        PlayerPrefs.SetInt("level", level-1);
        Debug.Log(level);

        ScreenChange();
    }

    public void ScreenChange()
    {
        SceneManager.LoadScene("Main");
    }
    
}
